//
//  XMPointsListTableViewCell.m
//  XunMi
//
//  Created by MacBook on 2024/3/14.
//  Copyright © 2024 TieZhu. All rights reserved.
//

#import "XMPointsListTableViewCell.h"
#import "XMPointsModel.h"

@interface XMPointsListTableViewCell ()
@property (weak, nonatomic) IBOutlet UILabel *titleLa;
@property (weak, nonatomic) IBOutlet UILabel *dateLa;
@property (weak, nonatomic) IBOutlet UILabel *countLa;
@property (weak, nonatomic) IBOutlet UILabel *yueLa;
@property (weak, nonatomic) IBOutlet UILabel *typeLa;

@end

@implementation XMPointsListTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setModel:(XMPointsModel *)model {
    _model = model;
    self.titleLa.text = kValueToString(model.consume_type);
    self.dateLa.text = kValueToString(model.operate_time);
    self.countLa.text = kValueToString(model.change_score);
    self.typeLa.text = kValueToString(model.change_notes);
    self.yueLa.text = kStringFormat(@"剩余积分:%@", model.score_number);
}


@end
